package com.zhouys.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
//等价于bean中的代码
@Component
public class User {

//    public   String name="测试";
    @Value("注解")
    public   String name;
}
